package com.dhkj.web.idf.model;

import android.os.Parcel;
import android.os.Parcelable;

public class DeviceLogin implements Parcelable{

    private int devicePK;

    private String deviceName;

    private String comment;

    private String createTime;

    private int createUserPK;

    private String deviceId;

    private int deviceTypePK;

    private String merchantName;

    private int merchantPK;

    private String posLogin;

    private int price1;
    private int price2;
    private int price3;
    private int price4;
    private int price5;
    private int price6;
    private int price7;
    private int price8;
    private int price9;
    private int price10;

    private String registrationNumber;

    private int state;
    private long time;
    private String updateTime;
    private int updateUserPK;
    private int menuCirculationType;

//    private List<ConsumptionType> consumptionTypes;

    public DeviceLogin() {
    }

//    public DeviceLogin(DeviceRealmObject deviceRealmObject) {
//        this.devicePK = deviceRealmObject.getDevicePK();
//        this.createUserPK = deviceRealmObject.getCreateUserPK();
//        this.deviceTypePK = deviceRealmObject.getDeviceTypePK();
//        this.merchantPK = deviceRealmObject.getMerchantPK();
//
//        this.deviceName = deviceRealmObject.getDeviceName();
//        this.comment = deviceRealmObject.getComment();
//        this.createTime = deviceRealmObject.getCreateTime();
//        this.deviceId = deviceRealmObject.getDeviceId();
//        this.merchantName = deviceRealmObject.getMerchantName();
//        this.posLogin = deviceRealmObject.getPosLogin();
//        this.registrationNumber = deviceRealmObject.getRegistrationNumber();
//        this.updateTime = deviceRealmObject.getUpdateTime();
//
//        this.price1 = deviceRealmObject.getPrice1();
//        this.price2 = deviceRealmObject.getPrice2();
//        this.price3 = deviceRealmObject.getPrice3();
//        this.price4 = deviceRealmObject.getPrice4();
//        this.price5 = deviceRealmObject.getPrice5();
//        this.price6 = deviceRealmObject.getPrice6();
//        this.price7 = deviceRealmObject.getPrice7();
//        this.price8 = deviceRealmObject.getPrice8();
//        this.price9 = deviceRealmObject.getPrice9();
//        this.price10 = deviceRealmObject.getPrice10();
//
//        this.state = deviceRealmObject.getState();
//        this.time = deviceRealmObject.getTime();
//        this.updateUserPK = deviceRealmObject.getUpdateUserPK();
//        this.menuCirculationType = deviceRealmObject.getMenuCirculationType();
//    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public int getDevicePK() {
        return devicePK;
    }

    public void setDevicePK(int devicePK) {
        this.devicePK = devicePK;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getCreateUserPK() {
        return createUserPK;
    }

    public void setCreateUserPK(int createUserPK) {
        this.createUserPK = createUserPK;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public int getDeviceTypePK() {
        return deviceTypePK;
    }

    public void setDeviceTypePK(int deviceTypePK) {
        this.deviceTypePK = deviceTypePK;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public int getMerchantPK() {
        return merchantPK;
    }

    public void setMerchantPK(int merchantPK) {
        this.merchantPK = merchantPK;
    }

    public String getPosLogin() {
        return posLogin;
    }

    public void setPosLogin(String posLogin) {
        this.posLogin = posLogin;
    }

    public int getPrice1() {
        return price1;
    }

    public void setPrice1(int price1) {
        this.price1 = price1;
    }

    public int getPrice2() {
        return price2;
    }

    public void setPrice2(int price2) {
        this.price2 = price2;
    }

    public int getPrice3() {
        return price3;
    }

    public void setPrice3(int price3) {
        this.price3 = price3;
    }

    public int getPrice4() {
        return price4;
    }

    public void setPrice4(int price4) {
        this.price4 = price4;
    }

    public int getPrice5() {
        return price5;
    }

    public void setPrice5(int price5) {
        this.price5 = price5;
    }

    public int getPrice6() {
        return price6;
    }

    public void setPrice6(int price6) {
        this.price6 = price6;
    }

    public int getPrice7() {
        return price7;
    }

    public void setPrice7(int price7) {
        this.price7 = price7;
    }

    public int getPrice8() {
        return price8;
    }

    public void setPrice8(int price8) {
        this.price8 = price8;
    }

    public int getPrice9() {
        return price9;
    }

    public void setPrice9(int price9) {
        this.price9 = price9;
    }

    public int getPrice10() {
        return price10;
    }

    public void setPrice10(int price10) {
        this.price10 = price10;
    }

    public String getRegistrationNumber() {
        return registrationNumber;
    }

    public void setRegistrationNumber(String registrationNumber) {
        this.registrationNumber = registrationNumber;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public int getUpdateUserPK() {
        return updateUserPK;
    }

    public void setUpdateUserPK(int updateUserPK) {
        this.updateUserPK = updateUserPK;
    }

//    public List<ConsumptionType> getConsumptionTypes() {
//        return consumptionTypes;
//    }
//
//    public void setConsumptionTypes(List<ConsumptionType> consumptionTypes) {
//        this.consumptionTypes = consumptionTypes;
//    }

    public int getMenuCirculationType() {
        return menuCirculationType;
    }

    public void setMenuCirculationType(int menuCirculationType) {
        this.menuCirculationType = menuCirculationType;
    }

    public DeviceLogin(Parcel in) {
        this.devicePK = in.readInt();
        this.createUserPK = in.readInt();
        this.deviceTypePK = in.readInt();
        this.merchantPK = in.readInt();

        this.deviceName = in.readString();
        this.comment = in.readString();
        this.createTime = in.readString();
        this.deviceId = in.readString();
        this.merchantName = in.readString();
        this.posLogin = in.readString();
        this.registrationNumber = in.readString();
        this.updateTime = in.readString();

        this.price1 = in.readInt();
        this.price2 = in.readInt();
        this.price3 = in.readInt();
        this.price4 = in.readInt();
        this.price5 = in.readInt();
        this.price6 = in.readInt();
        this.price7 = in.readInt();
        this.price8 = in.readInt();
        this.price9 = in.readInt();
        this.price10 = in.readInt();

        this.state = in.readInt();
        this.time = in.readLong();
        this.updateUserPK = in.readInt();
//        this.consumptionTypes = in.readArrayList(ConsumptionType.class.getClassLoader());
        this.menuCirculationType = in.readInt();
    }

    public static final Parcelable.Creator<DeviceLogin> CREATOR = new Parcelable.Creator<DeviceLogin>() {
        @Override
        public DeviceLogin createFromParcel(Parcel in) {
            return new DeviceLogin(in);
        }

        @Override
        public DeviceLogin[] newArray(int size) {
            return new DeviceLogin[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.devicePK);
        parcel.writeInt(this.createUserPK);
        parcel.writeInt(this.deviceTypePK);
        parcel.writeInt(this.merchantPK);

        parcel.writeString(this.deviceName);
        parcel.writeString(this.comment);
        parcel.writeString(this.createTime);
        parcel.writeString(this.deviceId);
        parcel.writeString(this.merchantName);
        parcel.writeString(this.posLogin);
        parcel.writeString(this.registrationNumber);
        parcel.writeString(this.updateTime);

        parcel.writeInt(this.price1);
        parcel.writeInt(this.price2);
        parcel.writeInt(this.price3);
        parcel.writeInt(this.price4);
        parcel.writeInt(this.price5);
        parcel.writeInt(this.price6);
        parcel.writeInt(this.price7);
        parcel.writeInt(this.price8);
        parcel.writeInt(this.price9);
        parcel.writeInt(this.price10);

        parcel.writeInt(this.state);
        parcel.writeLong(this.time);
        parcel.writeInt(this.updateUserPK);
//        parcel.writeList(this.consumptionTypes);
        parcel.writeInt(this.menuCirculationType);
    }
}
